<?php

namespace App\Models;

use App\User;
use Illuminate\Database\Eloquent\Model;
use Overtrue\LaravelFollow\Traits\CanBeVoted;

class Comment extends Model
{
    use CanBeVoted;
    protected $table = 'comment';

    protected $guarded = [];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function commentable(){
        return $this->morphTo();
    }
}
